import { createRouter, createWebHashHistory } from 'vue-router'
export default createRouter({
  // 指定路由模式
  history: createWebHashHistory(),
  // 路由地址
  routes: [
      {
          path:'/',
          redirect:'/xtuser'
      },{
        path:'/login',
        component:()=>import('../xitong/Login.vue')
    },{
        path:'/xtuser',
        component:()=>import('../xitong/XT_User.vue')
    },
      {
          path:'/index',
          component:()=>import('../Index.vue')
      },
      {
          path:'/bar',
          component:()=>import('../echarts/Bar.vue')
      },
      {
          path:'/code',
          component:()=>import('../code/Index.vue')
      },
      {
          path:'/modifyCode',
          component:()=>import('../code/ModifyCode.vue')
      }
  ]
})